import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      name: 'Home',
      component: () => import("../pages/tabbar/index.vue"),
    },
    {
      path: '/situation',
      name: 'Situation',
      component: () => import("../pages/tabbar/situation.vue"),
    },
    {
      path: '/deal',
      name: 'Deal',
      component: () => import("../pages/tabbar/deal.vue"),
    },
    {
      path: '/manage',
      name: 'Manage',
      component: () => import("../pages/tabbar/manage.vue"),
    },
    {
      path: '/mine',
      name: 'Mine',
      component: () => import("../pages/tabbar/mine.vue"),
    },
    {
      //路由重定向
      path: "*",
      redirect: "/home"
    }
  ]
})

export default router
